<template>
  <div class="head">
    <div class="tubiao">
      <img src="../assets/谷动次元.jpg" class="tubiao_img" alt=""/>
    </div>
    <ul class="head_menu">
      <li class="home">
        <router-link to="/maid" class="jq_click" ><i class="iconfont icon-shouye head_iconfont "> </i> 首页</router-link>
      </li>
      <li class="say">
        <router-link to="/forum" class="jq_click" >
          <i class="iconfont icon-icon_luntan-mian head_iconfont"  > </i> <span class="display_text">次元</span><span>小窝</span></router-link>
      </li>
      <li class="shop">
        <router-link to="/shopping" class="jq_click" >
          <i class="iconfont icon-koudai head_iconfont"  > </i> <span class="display_text">次元</span><span>口袋</span></router-link>
      </li>
      <li class=“video”>
       <router-link to="/video" class="jq_click" ><i class="iconfont icon-shipin head_iconfont" ></i> <span class="display_text">次元</span><span>星球</span></router-link>
      </li>
      <li class="activity">
        <router-link to="/activity" class="jq_click" ><i class="iconfont icon-huodong head_iconfont" ></i>活动</router-link>
      </li>
    </ul>
    <ul class="people_menu">
      <li class="say">
        <router-link to="/setup" class="jq_click"><i class="iconfont icon-shezhi shezhi_img" title="设置"> </i></router-link>
      </li>
      <li class="people_home">
        <router-link to="/Login"  class="jq_click"><i class="iconfont icon-anquandai peaple_img" title="个人中心"> </i></router-link>
      </li>

    </ul>
  </div>
</template>

<script>
import $ from "jquery";
export default {
  name: 'HHead',
  mounted() {
    console.log(this.$route)
  }
}

$(function (){
  let a = 'ss';
  $(document).ready(function(){
    a = window.location.pathname
  })
  $('.jq_click').on('click',function (){
    const b = window.location.pathname;
    if(a !== b){
      window.location.reload()
    }

  })
})
</script>
